<%-- 
    Document   : agregarMatriz
    Created on : 19/03/2012, 07:02:32 PM
    Author     : Gimbet
--%>
<%@page import="clases.Reporte"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<% System.out.println("Pase por aqui en agregarMatriz");
    %>
  <h2>Matrices</h2>
  <logic:present name="Reporte" property="idreporte">
        <html:form action="agregarMatriz?method=save" onsubmit="return this"> 
           
          
        <table>
                <tr>
                    <td> Unidad </td>
                    <td>
                        <logic:present name="unidades">
                            <html:select property="codigoUnidad" onchange="cargar('cargarMatriz.do?unidad='+this.value, 'matrices')">
                                <html:option value="0"> Seleccione Unidad</html:option>
                                <html:options collection="unidades" property="codigo"  labelProperty="descripcion"/>
                            </html:select> 
                        </logic:present>
                    </td>
                </tr>
            </table>
        <div id="matrices"></div>
        
        
     <div class="buttons">
        <button type="submit" class="positive" style="margin-left: 3%; margin-top: 2%;">
                <img src="interfaz/images/agregar.png" alt=""/>
                Añadir Matriz
        </button>
     </html:form>

      </div>

        </logic:present>
  <br>
  <br>
